package net.mfjassociates.financial.expense.shared.domain;

import org.springframework.roo.addon.entity.RooEntity;
import org.springframework.roo.addon.javabean.RooJavaBean;
import org.springframework.roo.addon.tostring.RooToString;
import net.mfjassociates.financial.expense.shared.domain.Employee;
import javax.persistence.ManyToOne;
import java.util.Date;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import org.springframework.format.annotation.DateTimeFormat;
import org.springframework.format.annotation.NumberFormat;
import org.springframework.format.annotation.NumberFormat.Style;

import java.math.BigDecimal;

@RooJavaBean
@RooToString
@RooEntity
public class Report {

    @ManyToOne
    private Employee reporter;

    @ManyToOne
    private Employee manager;

    private String shortName;

    private String description;

    @Temporal(TemporalType.TIMESTAMP)
    @DateTimeFormat(style = "S-")
    private Date submitted;

    @NumberFormat(style=Style.CURRENCY)
    private BigDecimal advanceAmount;

    private Boolean paid;

    private String paidConfirmation;
}
